﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Shared;

namespace DAL
{
    public static class Initializator
    {
        public static IUserRepository GetUserRepository()
        {
            ShopContext context = new ShopContext();
            return new UserRepository(context);
        }

        public static IProductRepository GetProductRepository()
        {
            ShopContext context = new ShopContext();
            return new ProductRepository(context);
        }

        public static ICategoryRepository GetCategoryRepository()
        {
            ShopContext context = new ShopContext();
            return new CategoryRepository(context);
        }
    }
}
